from crt_django.crt.models import *
from django.contrib import admin

   
    
class ProblemOptions(admin.ModelAdmin):
    list_display   = ('name', 'description', 'status', 'issued',)
    list_filter    = ('status',)
    ordering       = ('name',)
    search_fieldsets = ('name','description',)
    date_hierarchy = 'issued'
    
class CausalRelationOptions(admin.ModelAdmin):
    list_display   = ('cause', 'effect', 'issued',)
    ordering       = ('cause',)
    search_fieldsets = ('cause', 'effect',)
    date_hierarchy = 'issued'
   
   
admin.site.register(Tag)    
admin.site.register(Problem, ProblemOptions)
admin.site.register(CausalRelation, CausalRelationOptions)
